<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../../css/iuapmobile.um.css">
		<link rel="stylesheet" href="../../css/font-icons.css">
		<link rel="stylesheet" href="../../css/iscroll.css" />
		<script src="../../js/summer.js" ></script>
		<script src="../../js/jquery.min.js" ></script>
		<script src="../../js/iscroll.js"></script>
		<script src="../../js/Frameworks/iuapmobile.frameworks.ui.js" ></script>
		<script src="../../js/angular.min.js"></script>
		<style>
		    #select1_dummy, #select2_dummy, #visa_type_dummy, #select4_dummy, #select5_dummy {
				border: none;
				padding-left: 10px;
				color: #555;
				font-size: 17px;
				text-align: right;
				margin-right: 20px;
				width: 100%;
			}
			#select1_dummy:disabled, #select2_dummy:disabled, #visa_type_dummy:disabled, #select4_dummy:disabled, #select5_dummy:disabled {
				background: #fff;
			}
			.um-time {
				background: #ffffff;
				border-top: 1px solid #dddddd;
				border-bottom: 1px solid #dddddd;
			}
			.um-time-list {
				height: 46px;
				line-height: 46px;
			}
			.um-time-list:first-child {
				border-bottom: 1px solid #dddddd;
			}
			.um-time-txt {
				float: left;
				color: #8c8d8e;
			}
			.um-time-list .fr {
				position: relative;
				float: right;
				margin-right: 30px;
			}
			.um-time-list .fr:after {
				content: "";
				position: absolute;
				right: -15px;
				top: 15px;
				display: inline-block;
				width: 14px;
				height: 14px;
				border-right: 2px solid #8c8d8e;
				border-top: 2px solid #8c8d8e;
				-webkit-transform: rotate(45deg);
				transform: rotate(45deg);
			}
			.um-time-list input {
				display: block;
				width: 180px;
				height: 45px;
				line-height: 45px;
				border: none;
				outline: none;
				text-align: right;
				background: #fff;
			}
			.cart-reduce, .cart-add {
				display: inline-block;
				font-size: 16px;
				color: RGB(157,194,59);
				white-space: nowrap;
				text-align: center;
				cursor: pointer;
				border-radius: 50%;
				width: 22px;
				height: 22px;
				border: 1px solid RGB(157,194,59);
				padding: 0;
				z-index: 10;
				line-height: 18px;
			}
			.cart-count {
				max-width: 30px;
				border: none;
				border-bottom: 1px solid RGB(157,194,59);
				text-align: center;
				-moz-appearance: textfield;
			}
			.cart-count::-webkit-outer-spin-button, .cart-count::-webkit-inner-spin-button {
				-webkit-appearance: none !important;
				margin: 0;
			}
			.cart-count:focus {
				outline: none;
			}
			.self {
				padding: 0;
				margin: 0 0 0 15px
			}
			.self span {
				margin-right: 15px
			}
			.um-list-item-right img {
				width: 30%;
				height: 30%;
				padding: 5px;
			}
			.mustwrite {
				margin-left: 10px
			}
		</style>

	</head>
	<body class="f14">
		<div class="um-page" id="inspected">
			<div class="um-header" >
				<a href="#" class="um-back back"> 返回</a>
				<h3>确认施工完成</h3>
				<a class="um-header-right" onclick="TemporarySave()">暂存</a>
			</div>
			<div class="um-content" id="listview" ng-app="myApp" ng-controller="myCtrl" ng-init="
			bdef42='../../img/myimg/camera.png';bdef43='../../img/myimg/camera.png';bdef44='../../img/myimg/camera.png'; azwb_mtimage='../../img/myimg/camera.png';azwb_yjimage='../../img/myimg/camera.png';azwb_jjimage='../../img/myimg/camera.png';tmtimage='../../img/myimg/camera.png';azwb_sxjwzimage1='../../img/myimg/camera.png';azwb_sxjwzimage2='../../img/myimg/camera.png';azwb_sxjwzimage3='../../img/myimg/camera.png';bdef10='../../img/myimg/camera.png';bdef11='../../img/myimg/camera.png';bdef12='../../img/myimg/camera.png';bdef13='../../img/myimg/camera.png';bdef14='../../img/myimg/camera.png';bdef15='../../img/myimg/camera.png';bdef16='../../img/myimg/camera.png';tyylicenseimage='../../img/myimg/camera.png';azwb_qdwzimage='../../img/myimg/camera.png';bdef28='../../img/myimg/camera.png';bdef29='../../img/myimg/camera.png';azwb_wljrdimage='../../img/myimg/camera.png';azwb_qgimage='../../img/myimg/camera.png';visa_image='../../img/myimg/camera.png';azwb_phxljrdimage='../../img/myimg/camera.png';azwb_sxjdyimage1='../../img/myimg/camera.png';azwb_sxjdyimage3='../../img/myimg/camera.png';
			visa_num = 0;
			azwb_sxj=0;
			azwb_sxjdy =0;
			azwb_xsbxz=0;
			poe=0;
			azwb_kgdy=0;
			azwb_ldkk=0;
			azwb_jhj=0;
			azwb_jx=0;
			azwb_cp=0;
			azwb_ecjdq=0;
			azwb_yxlyq=0;
			azwb_wxlyq=0;
			azwb_lyqh=0;
			azwb_sjkzq=0;
			azwb_dlm=0;
			azwb_dlmh=0;
			a3g=0;
			azwb_gqsfq=0;
			azwb_gqsrqh=0;
			modem_gq=0;
			modem_adsl=0;
			bdef8=0;
			bdef9=0;
			">

				<ul class="um-list">
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								提报验收日期：
							</div>
							<div class="um-list-item-right">
								<label for="install_date" style="width: 100%; height:30px;">
									<input ng-model="install_date" id="install_date" disabled="" type="date" name="date" class="form-control tr" value="{{install_date}}">
								</label>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								安装完成：
							</div>
							<div class="um-list-item-right">
								<label class="um-switch2 um-box-vc ">
									<input type="checkbox" class="um-switch2" ng-model="complete_state" ng-checked="complete_state" />
									<span class="um-switch2-check" data-on-text="是" data-off-text="否"  style="margin-right: 0px;"></span> </label>
							</div>
						</div>
					</li>

					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								设备编号：
							</div>
							<div class="um-list-item-right">
								<span  ng-model="bdef20" ng-click='scannerCode("bdef20")'>{{bdef20}}</span>
								<img type="image" ng-show="!bdef20" ng-click='scannerCode("bdef20")' ng-src="../../img/myimg/scanner.png" class="h50 p5"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								MAC地址：
							</div>
							<div class="um-list-item-right">
								<span  ng-model="mac" ng-click='scannerCode("mac")'>{{mac}}</span>
								<img ng-show="!mac" ng-click='scannerCode("mac")' ng-src="../../img/myimg/scanner.png" class="h50 p5"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								ESN编号：
							</div>
							<div class="um-list-item-right">
								<span  ng-model="esn" ng-click='scannerCode("esn")'>{{esn}}</span>
								<img  ng-show="!esn" ng-click='scannerCode("esn")' ng-src="../../img/myimg/scanner.png" class="h50 p5"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								资产编码：
							</div>
							<div class="um-list-item-right">
								<span  ng-model="equipment_no" ng-click='scannerCode("equipment_no")'>{{equipment_no}}</span>
								<img  ng-show="!equipment_no" ng-click='scannerCode("equipment_no")' ng-src="../../img/myimg/scanner.png" class="h50 p5"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								签约人员:
							</div>
							<div class="um-list-item-right">
								<span ng-model="qyry1_name">{{qyry1_name}}</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								门头照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_mtimage"  ng-src="{{azwb_mtimage}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								远景照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_yjimage"  ng-src="{{azwb_yjimage}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								近景照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_jjimage"  ng-src="{{azwb_jjimage}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								屏取电位置：
							</div>
							<div class="um-list-item-right">
								<input ng-model="azwb_qdwz" type="text" value="{{azwb_qdwz}}" class="form-control tr" placeholder="请填写">
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								取电位置近景照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_qdwzimage"  ng-src="{{azwb_qdwzimage}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								取电位置远景照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef28"  ng-src="{{bdef28}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								网络接入点近景照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_wljrdimage"  ng-src="{{azwb_wljrdimage}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								网络接入点远景照：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef29"  ng-src="{{bdef29}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								是否签证：
							</div>
							<div class="um-list-item-right">
								<label class="um-switch2 um-box-vc ">
									<input type="checkbox" class="um-switch2" ng-model="visa_whether" ng-checked="visa_whether"/>
									<span class="um-switch2-check" data-on-text="是" data-off-text="否"  style="margin-right: 0px;"></span> </label>
							</div>
						</div>
					</li>
					<li class="um-list-item" id="showvisa_type">
						<div class="um-list-item-inner">
							<!--<span class="h pa um-box-vc um-red f20 pl5" >*</span>-->
							<div class="um-list-item-left pl15">
								签证类型：
							</div>
							<div class="um-list-item-right">
								<select id='visa_type' ng-model="visa_type" class="select" multiple="multiple">
									<option ng-repeat="r in visa_type2" value="{{r.pk_doc}}">{{r.doc_name}}</option>
								</select>
							</div>
						</div>
					</li>
					<li class="um-list-item" id="visa_num">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								签证数量：
							</div>
							<div class="um-list-item-right ">
								<span class="cart-reduce " ng-click="visa_num>=0?visa_num=visa_num+1:visa_num=visa_num" >+</span>
								<input id="visa_nums" ng-model="visa_num" type="number"  class="cart-count" placeholder="请填写" ng->
								<span class="cart-add " ng-click="visa_num>0?visa_num=visa_num-1:visa_num=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item qz0">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								签证照片：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="visa_image"  ng-src="{{visa_image}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item qz1">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								签证照片2：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef42"  ng-src="{{bdef42}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item qz2">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								签证照片3：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef43"  ng-src="{{bdef43}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item qz3">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								签证照片4：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef44"  ng-src="{{bdef44}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								时控开机时间：
							</div>
							<div class="um-list-item-right">
								<label for="kjtime" style="width: 100%; height:30px;">
									<input ng-model="azwb_kjtime" id="kjtime" type="time" name="date" class="form-control tr timepicker ng-pristine ng-invalid ng-invalid-required ng-touched" value="{{azwb_kjtime}}">
								</label>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								时控关机时间：
							</div>
							<div class="um-list-item-right">
								<label for="gjtime" style="width: 100%; height:30px;">
									<input ng-model="azwb_gjtime" id="gjtime" type="time" name="date"  class="form-control tr timepicker ng-pristine ng-invalid ng-invalid-required ng-touched" value="{{azwb_gjtime}}" placeholder="请选择">
								</label>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								外网接入：
							</div>
							<div class="um-list-item-right">
								<input type="text"  id='select1_dummy' ng-model="bdef5"/>
								<select id='select1' class="select">
									<option>ADSL</option>
									<option>光纤</option>
									<option>3G</option>
									<option>商家wifi</option>
									<option>有线宽带</option>
								</select>
							</div>
						</div>
					</li>
					<li class="wifi">
						<div class="um-list-item" >
							<div class="um-list-item-inner">
								<div class="um-list-item-left pl5">
									<span class="um-red">*</span>账号
								</div>
								<div class="um-list-item-right">
									<input type="text" id="wifi_name" class="form-control tr" placeholder="请填写" >
								</div>
							</div>
						</div>
					</li>
					<li class="wifi">
						<div class="um-list-item" >
							<div class="um-list-item-inner">
								<div class="um-list-item-left pl5">
									<span class="um-red">*</span>密码
								</div>
								<div class="um-list-item-right">
									<input type="text" id="wifi_password" class="form-control tr" placeholder="请填写">
								</div>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								內网接入：
							</div>
							<div class="um-list-item-right">
								<input type="text"  id='select2_dummy' ng-model="bdef7"/>
								<select id='select2' class="select">
									<option>有线</option>
									<option>无线</option>
									<option>光纤</option>
									<option>电力猫</option>
								</select>
							</div>
						</div>
					</li>
					<li class="um-list-item" id="sxj1" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片1：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_sxjwzimage1"  ng-src="{{azwb_sxjwzimage1}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj2" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片2：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_sxjwzimage2"  ng-src="{{azwb_sxjwzimage2}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj3" style="display: none">
						<div class="um-list-item-inner" >
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片3：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_sxjwzimage3"  ng-src="{{azwb_sxjwzimage3}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj4" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片4：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)"  id="bdef10" ng-src="{{bdef10}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj5" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片5：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef11"   ng-src="{{bdef11}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj6" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片6：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef12"   ng-src="{{bdef12}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj7" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片7：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef13" ng-src="{{bdef13}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj8" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片8：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef14"   ng-src="{{bdef14}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj9" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片9：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="bdef15"  ng-src="{{bdef15}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item" id="sxj10" style="display: none">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class=" pl15">
								摄像机位置照片10：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)"id="bdef16"   ng-src="{{bdef16}}" class="h50 p5 camera"/>
							</div>

						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								摄像机（含支架）：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_sxj>=0?azwb_sxj=azwb_sxj+1:azwb_sxj=0" >+</span>
								<input id="azwb_sxj" ng-model="azwb_sxj" type="number" value="{{azwb_sxj}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_sxj>0?azwb_sxj=azwb_sxj-1:azwb_sxj=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								摄像机电源：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_sxjdy>=0?azwb_sxjdy=azwb_sxjdy+1:azwb_sxjdy=0" >+</span>
								<input id="azwb_sxjdy" ng-model="azwb_sxjdy" type="number" value="{{azwb_sxjdy}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_sxjdy>0?azwb_sxjdy=azwb_sxjdy-1:azwb_sxjdy=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								线上保险座：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_xsbxz>=0?azwb_xsbxz=azwb_xsbxz+1:azwb_xsbxz=0" >+</span>
								<input id="azwb_xsbxz" ng-model="azwb_xsbxz" type="number" value="{{azwb_xsbxz}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_xsbxz>0?azwb_xsbxz=azwb_xsbxz-1:azwb_xsbxz=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								POE分离器：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="poe>=0?poe=poe+1:poe=0" >+</span>
								<input id="poe" ng-model="poe" type="number" value="{{poe}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="poe>0?poe=poe-1:poe=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								开关电源：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_kgdy>=0?azwb_kgdy=azwb_kgdy+1:azwb_kgdy=0" >+</span>
								<input id="azwb_kgdy" ng-model="azwb_kgdy" type="number" value="{{azwb_kgdy}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_kgdy>0?azwb_kgdy=azwb_kgdy-1:azwb_kgdy=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								漏电空开：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_ldkk>=0?azwb_ldkk=azwb_ldkk+1:azwb_ldkk=0" >+</span>
								<input id="azwb_ldkk" ng-model="azwb_ldkk" type="number" value="{{azwb_ldkk}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_ldkk>0?azwb_ldkk=azwb_ldkk-1:azwb_ldkk=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								交换机：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_jhj>=0?azwb_jhj=azwb_jhj+1:azwb_jhj=0" >+</span>
								<input id="azwb_jhj" ng-model="azwb_jhj" type="number" value="{{azwb_jhj}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_jhj>0?azwb_jhj=azwb_jhj-1:azwb_jhj=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								交换机箱：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_jx>=0?azwb_jx=azwb_jx+1:azwb_jx=0" >+</span>
								<input id="azwb_jx" ng-model="azwb_jx" type="number" value="{{azwb_jx}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_jx>0?azwb_jx=azwb_jx-1:azwb_jx=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								插排：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_cp>=0?azwb_cp=azwb_cp+1:azwb_cp=0" >+</span>
								<input id="azwb_cp" ng-model="azwb_cp" type="number" value="{{azwb_cp}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_cp>0?azwb_cp=azwb_cp-1:azwb_cp=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								二次继电器：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_ecjdq>=0?azwb_ecjdq=azwb_ecjdq+1:azwb_ecjdq=0" >+</span>
								<input id="azwb_ecjdq" ng-model="azwb_ecjdq" type="number" value="{{azwb_ecjdq}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_ecjdq>0?azwb_ecjdq=azwb_ecjdq-1:azwb_ecjdq=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								有线路由器：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_yxlyq>=0?azwb_yxlyq=azwb_yxlyq+1:azwb_yxlyq=0" >+</span>
								<input id="azwb_yxlyq" ng-model="azwb_yxlyq" type="number" value="{{azwb_yxlyq}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_yxlyq>0?azwb_yxlyq=azwb_yxlyq-1:azwb_yxlyq=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								无线路由器：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_wxlyq>=0?azwb_wxlyq=azwb_wxlyq+1:azwb_wxlyq=0" >+</span>
								<input id="azwb_wxlyq" ng-model="azwb_wxlyq" type="number" value="{{azwb_wxlyq}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_wxlyq>0?azwb_wxlyq=azwb_wxlyq-1:azwb_wxlyq=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								路由器盒：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_lyqh>=0?azwb_lyqh=azwb_lyqh+1:azwb_lyqh=0" >+</span>
								<input id="azwb_lyqh" type="number" ng-model="azwb_lyqh" id="routerBox" value="{{azwb_lyqh}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_lyqh>0?azwb_lyqh=azwb_lyqh-1:azwb_lyqh=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								时间控制器：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_sjkzq>=0?azwb_sjkzq=azwb_sjkzq+1:azwb_sjkzq=0" >+</span>
								<input id="azwb_sjkzq" type="number" ng-model="azwb_sjkzq" value="{{azwb_sjkzq}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_sjkzq>0?azwb_sjkzq=azwb_sjkzq-1:azwb_sjkzq=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								电力猫：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_dlm>=0?azwb_dlm=azwb_dlm+1:azwb_dlm=0" >+</span>
								<input id="azwb_dlm" type="number" ng-model="azwb_dlm" value="{{azwb_dlm}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_dlm>0?azwb_dlm=azwb_dlm-1:azwb_dlm=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								电力猫盒：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_dlmh>=0?azwb_dlmh=azwb_dlmh+1:azwb_dlmh=0" >+</span>
								<input id="azwb_dlmh" type="number" ng-model="azwb_dlmh" value="{{azwb_dlmh}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_dlmh>0?azwb_dlmh=azwb_dlmh-1:azwb_dlmh=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								3G网卡：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="a3g>=0?a3g=a3g+1:a3g=0" >+</span>
								<input id="a3g" type="number" ng-model="a3g" value="{{a3g}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="a3g>0?a3g=a3g-1:a3g=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								光纤收发器：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_gqsfq>=0?azwb_gqsfq=azwb_gqsfq+1:azwb_gqsfq=0" >+</span>
								<input id="azwb_gqsfq" type="number" ng-model="azwb_gqsfq" value="{{azwb_gqsfq}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_gqsfq>0?azwb_gqsfq=azwb_gqsfq-1:azwb_gqsfq=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								光纤熔纤盒：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="azwb_gqsrqh>=0?azwb_gqsrqh=azwb_gqsrqh+1:azwb_gqsrqh=0" >+</span>
								<input id="azwb_gqsrqh" type="number" ng-model="azwb_gqsrqh" value="{{azwb_gqsrqh}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="azwb_gqsrqh>0?azwb_gqsrqh=azwb_gqsrqh-1:azwb_gqsrqh=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								光纤Modem：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="modem_gq>=0?modem_gq=modem_gq+1:modem_gq=0" >+</span>
								<input id="modem_gq" type="number" ng-model="modem_gq" value="{{modem_gq}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="modem_gq>0?modem_gq=modem_gq-1:modem_gq=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								ADSL Modem：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="modem_adsl>=0?modem_adsl=modem_adsl+1:modem_adsl=0" >+</span>
								<input id="modem_adsl" type="number" ng-model="modem_adsl" value="{{modem_adsl}}" class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="modem_adsl>0?modem_adsl=modem_adsl-1:modem_adsl=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								竣工图：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_qgimage"  ng-src="{{azwb_qgimage}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>

					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								屏后线缆接入点：
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_phxljrdimage"   ng-src="{{azwb_phxljrdimage}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<div class="um-list-item-left pl15">
								<span>勘查单正面：</span>
							</div>
							<div class="um-list-item-right">
								<img onclick="openCamera(this,pageid)" id="azwb_sxjdyimage1"   ng-src="{{azwb_sxjdyimage1}}" class="h50 p5 camera"/>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								实际吊装支架数量：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="bdef8>=0?bdef8=bdef8+1:bdef8=0" >+</span>
								<input id="bdef8" type="number" ng-model="bdef8"  class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="bdef8>0?bdef8=bdef8-1:bdef8=0">-</span>
							</div>
						</div>
					</li>
					<li class="um-list-item">
						<div class="um-list-item-inner">
							<span class="h pa um-box-vc um-red f20 pl5" >*</span>
							<div class="um-list-item-left pl15">
								实际加长装置数量：
							</div>
							<div class="um-list-item-right">
								<span class="cart-reduce " ng-click="bdef9>=0?bdef9=bdef9+1:bdef9=0" >+</span>
								<input id="bdef9" type="number" ng-model="bdef9"  class="cart-count" placeholder="请填写">
								<span class="cart-add " ng-click="bdef9>0?bdef9=bdef9-1:bdef9=0">-</span>
							</div>
						</div>
					</li>
				</ul>
				<div class="btn-group btn-group-justify">
					<button type="button" class="um-btn" onclick="submitdata1();">
						施工完成(提报验收)
					</button>
				</div>

			</div>
		</div>

		<script>
			var pageid = "inspected";
			$(function() {
				var opt = {
					'date' : {
						preset : 'date'
					},
					'select' : {
						preset : 'select'
					}
				};
				$('.select').scroller('destroy').scroller($.extend(opt['select'], {
					theme : "ios7",
					mode : "scroller",
					display : "bottom",
					animate : ""
				}));
			});

			var data = {};

			var idlist = new Array();
			var images = new Array();
			var angularScope;
			//anglajs
			var pageParam;
			//打开当前页的参数
			var changeObj;
			//根据单号加载的数据 修改
			var bodyid;
			var pageparam;
			var timeIdex;
			var billcode;
			var selectdatas;
			var visatypearr = new Array();
			var pp = "未知";
			var visa_type = document.getElementById("visa_type");
			var azwb_wwjr = document.getElementById("select1");
			var azwb_nwjr = document.getElementById("select2");
			function getselectValue(obj) {
				return obj.options[obj.selectedIndex].value;
			}
			function getData(iszc) {//是否暂存
			    var visa = "";
			    if(angularScope.visa_type){
				    for(var i =0;i<angularScope.visa_type.length;i++){
				    	if(i==0){
				    		visa = angularScope.visa_type[i];
				    	}else{
				    		visa += ("," + angularScope.visa_type[i]);
				    	}
				    }
			    }
			    
				try {
					if (angularScope.bdef5 != "商家wifi") {
						$("#wifi_name").val("");
						$("#wifi_password").val("");
					};
					try{
						switch(angularScope.bdef20[0].toUpperCase()) {
						case "P":
							pp = "普天";
							break;
						case "C":
							pp = "创品";
							break;
						case "D":
							pp = "迪讯";
							break;
						case "B":
							pp = "保千里";
							break;
						case "X":
							pp = "信颐";
							break;
						}
					}catch(e){}
					
					if(!iszc){
						if (pp == "未知") {
							toasts('不能识别的品牌编号');
							return;
						}
					}
					var binddatas = {
						install_date : angularScope.install_date == null ? "" : format(angularScope.install_date, 'yyyy-MM-dd HH:mm:ss'),
						installation_time : angularScope.installation_time == null ? "" : format(timeIdex, 'yyyy-MM-dd HH:mm:ss'),
						complete_state : (angularScope.complete_state) ? "Y" : "N",
						equipment_no : angularScope.equipment_no == null ? "" : angularScope.equipment_no,
						bdef20 : angularScope.bdef20 == null ? "" : angularScope.bdef20,
						mac : angularScope.mac == null ? "" : angularScope.mac,
						esn : angularScope.esn == null ? "" : angularScope.esn,
						azwb_mtimage : imgs["azwb_mtimage"] == null ? "" : imgs["azwb_mtimage"],
						azwb_yjimage : imgs["azwb_yjimage"] == null ? "" : imgs["azwb_yjimage"],
						azwb_jjimage : imgs["azwb_jjimage"] == null ? "" : imgs["azwb_jjimage"],
						azwb_sxjwzimage1 : imgs["azwb_sxjwzimage1"] == null ? "" : imgs["azwb_sxjwzimage1"],
						azwb_sxjwzimage2 : imgs["azwb_sxjwzimage2"] == null ? "" : imgs["azwb_sxjwzimage2"],
						azwb_sxjwzimage3 : imgs["azwb_sxjwzimage3"] == null ? "" : imgs["azwb_sxjwzimage3"],
						bdef10 : imgs["bdef10"] == null ? "" : imgs["bdef10"],
						bdef11 : imgs["bdef11"] == null ? "" : imgs["bdef11"],
						bdef12 : imgs["bdef12"] == null ? "" : imgs["bdef12"],
						bdef13 : imgs["bdef13"] == null ? "" : imgs["bdef13"],
						bdef14 : imgs["bdef14"] == null ? "" : imgs["bdef14"],
						bdef15 : imgs["bdef15"] == null ? "" : imgs["bdef15"],
						bdef16 : imgs["bdef16"] == null ? "" : imgs["bdef16"],
						azwb_qdwz : angularScope.azwb_qdwz == null ? "" : angularScope.azwb_qdwz,
						azwb_qdwzimage : imgs["azwb_qdwzimage"] == null ? "" : imgs["azwb_qdwzimage"],
						bdef28:imgs["bdef28"] == null ? "" : imgs["bdef28"],
						bdef29:imgs["bdef29"] == null ? "" : imgs["bdef29"],
						azwb_wljrdimage : imgs["azwb_wljrdimage"] == null ? "" : imgs["azwb_wljrdimage"],
						visa_whether : (angularScope.visa_whether) ? "Y" : "N",
						visa_type : (!visa) ? "" : visa,
						visa_num : angularScope.visa_num == null ? "" : angularScope.visa_num,
						visa_image : imgs["visa_image"] == null ? "" : imgs["visa_image"],
						azwb_sxjdyimage1 : imgs["azwb_sxjdyimage1"] == null ? "" : imgs["azwb_sxjdyimage1"],
						azwb_sxjdyimage2 : "",
						azwb_sxjdyimage3 : imgs["azwb_sxjdyimage3"] == null ? "" : imgs["azwb_sxjdyimage3"],
						azwb_kjtime : angularScope.azwb_kjtime == null ? "" : format(angularScope.azwb_kjtime, "yyyy-MM-dd HH:mm:ss"),
						azwb_gjtime : angularScope.azwb_gjtime == null ? "" : format(angularScope.azwb_gjtime, "yyyy-MM-dd HH:mm:ss"),
						azwb_wwjr : getselectValue(azwb_wwjr) == null ? "" : getselectValue(azwb_wwjr),
						bdef5 : angularScope.bdef5 == null ? "" : angularScope.bdef5,
						bdef6 : $("#wifi_name").val() == null || $("#wifi_password").val() == null ? "" : $("#wifi_name").val() + "," + $("#wifi_password").val(),
						bdef7 : angularScope.bdef7 == null ? "" : angularScope.bdef7,
						azwb_nwjr : angularScope.azwb_nwjr == null ? "" : angularScope.azwb_nwjr,
						azwb_sxj : angularScope.azwb_sxj == null ? "" : angularScope.azwb_sxj,
						azwb_sxjdy : angularScope.azwb_sxjdy == null ? "" : angularScope.azwb_sxjdy,
						azwb_xsbxz : angularScope.azwb_xsbxz == null ? "" : angularScope.azwb_xsbxz,
						azwb_sxjsl : angularScope.azwb_sxjsl == null ? "" : angularScope.azwb_sxjsl,
						poe : angularScope.poe == null ? "" : angularScope.poe,
						azwb_kgdy : angularScope.azwb_kgdy == null ? "" : angularScope.azwb_kgdy,
						azwb_ldkk : angularScope.azwb_ldkk == null ? "" : angularScope.azwb_ldkk,
						azwb_jhj : angularScope.azwb_jhj == null ? "" : angularScope.azwb_jhj,
						azwb_jx : angularScope.azwb_jx == null ? "" : angularScope.azwb_jx,
						azwb_cp : angularScope.azwb_cp == null ? "" : angularScope.azwb_cp,
						azwb_ecjdq : angularScope.azwb_ecjdq == null ? "" : angularScope.azwb_ecjdq,
						azwb_yxlyq : angularScope.azwb_yxlyq == null ? "" : angularScope.azwb_yxlyq,
						azwb_wxlyq : angularScope.azwb_wxlyq == null ? "" : angularScope.azwb_wxlyq,
						azwb_lyqh : angularScope.azwb_lyqh == null ? "" : angularScope.azwb_lyqh,
						azwb_sjkzq : angularScope.azwb_sjkzq == null ? "" : angularScope.azwb_sjkzq,
						azwb_dlm : angularScope.azwb_dlm == null ? "" : angularScope.azwb_dlm,
						azwb_dlmh : angularScope.azwb_dlmh == null ? "" : angularScope.azwb_dlmh,
						"3g" : angularScope.a3g == null ? "" : angularScope.a3g,
						azwb_gqsfq : angularScope.azwb_gqsfq == null ? "" : angularScope.azwb_gqsfq,
						azwb_gqsrqh : angularScope.azwb_gqsrqh == null ? "" : angularScope.azwb_gqsrqh,
						azwb_jhjsl : angularScope.azwb_jhjsl == null ? "" : angularScope.azwb_jhjsl,
						modem_gq : angularScope.modem_gq == null ? "" : angularScope.modem_gq,
						modem_adsl : angularScope.modem_adsl == null ? "" : angularScope.modem_adsl,
						bdef8 : angularScope.bdef8 == null ? "" : angularScope.bdef8,
						bdef9 : angularScope.bdef9 == null ? "" : angularScope.bdef9,
						azwb_qgimage : imgs["azwb_qgimage"] == null ? "" : imgs["azwb_qgimage"],
						azwb_phxljrdimage : imgs["azwb_phxljrdimage"] == null ? "" : imgs["azwb_phxljrdimage"],
						bdef21 : pp,
						bodyid : bodyid,
						bdef42:imgs["bdef42"] == null ? "" : imgs["bdef42"],
						bdef43:imgs["bdef43"] == null ? "" : imgs["bdef43"],
						bdef44:imgs["bdef44"] == null ? "" : imgs["bdef44"],
					};
				} catch(e) {
					alerts(e);
				}
				return binddatas;
			}

			//提交数据
			function submitdata1(){
				UM.confirm({
					title: '友情提示：',
					text: '是否确认提交?',
					btnText: ["取消", "确认"],
					overlay: true,
					ok: function() {
						submitdata();
					},
					cancle: function() {}
				});
			}
			function submitdata() {
				//字段
				if (angularScope.complete_state) {

					if (!angularScope.bdef20) {
						toasts("请重新扫描设备编号");
						return;
					}
					if (!angularScope.mac) {
						toasts("请重新扫描mac地址");
						return;
					}
					if (!angularScope.esn) {
						toasts("请重新扫描esn编号");
						return;
					}
					if (!angularScope.equipment_no) {
						toasts("请重新输入资产编码");
						return;
					}
					if (!imgs["azwb_mtimage"]) {
						toasts("请重新拍摄门头照");
						return;
					}
					if (!imgs["azwb_yjimage"]) {
						toasts("请重新拍摄远景照");
						return;
					}
					if (!imgs["azwb_jjimage"]) {
						toasts("请重新拍摄近景照");
						return;
					}
					
					if (!(angularScope.azwb_qdwz)) {
						toasts("请填写屏取电位置");
						return;
					}
					if (!imgs["azwb_qdwzimage"]) {
						toasts("请重新拍摄取电位置近景照");
						return;
					}
					if (!imgs["azwb_wljrdimage"]) {
						toasts("请重新拍摄网络接入点近景照");
						return;
					}
					if (angularScope.visa_whether) {
						if (!angularScope.visa_type) {
							toasts("请选择签证类型");
							return;
						}
						if (!(isDigit(angularScope.visa_num))) {
							toasts("请填写重新填写签证数量");
							return;
						}
						if(angularScope.visa_num >0 && !imgs["visa_image"]){
							toasts("请重新拍摄签证照片1");
							return;
						}
						if(angularScope.visa_num >1 && !imgs["bdef42"]){
							toasts("请重新拍摄签证照片2");
							return;
						}
						if(angularScope.visa_num >2 && !imgs["bdef43"]){
							toasts("请重新拍摄签证照片3");
							return;
						}
						if(angularScope.visa_num >3 && !imgs["bdef44"]){
							toasts("请重新拍摄签证照片4");
							return;
						}
					}
					if (!(angularScope.azwb_kjtime)) {
						toasts("请填写时控开机时间");
						return;
					}
					if (!(angularScope.azwb_gjtime)) {
						toasts("请填写时控关机时间");
						return;
					}
					if (!getselectValue(azwb_wwjr)) {
						toasts("请选择外网接入");
						return;
					}
					if (!getselectValue(azwb_nwjr)) {
						toasts("请选择内网接入");
						return;
					}
					if (getselectValue(azwb_wwjr) == "商家wifi") {
						if (!($("#wifi_name").val())) {
							toasts("请填写wifi账号");
							return;
						}
						if (!($("#wifi_password").val())) {
							toasts("请填写wifi密码");
							return;
						}
					}
					if (!imgs["azwb_qgimage"]) {
						toasts("请重新拍摄竣工图照片");
						return;
					}
					if (!imgs["azwb_phxljrdimage"]) {
						toasts("请重新拍摄屏后线缆接入点");
						return;
					}
				
				}
				var datass = getData();
				datass.is_temporary = "N";
				doPost(adressHead.IInstallationImpl2, "ConstructionCompleted", {
					dataParm : datass
				}, function(data) {
					if (data.result == 1) {
						alerts(data.msg);
						var type = {
							type : "sumbits"
						};
						setTimeout(function() {
							summer.execScript({
								winId : 'detail',
								script : "rebind(" + JSON.stringify(type) + ")"
							});
							summer.closeWin();
						}, 1000);
					} else {
						alerts(data.msg);
					}
				}, function(err) {
					alerts(err.msg);
				});
			}
			/**
			 * 暂存数据
			 */
			function TemporarySave() {
				var datas = getData(true);
				datas.is_temporary = "Y";
				doPost(adressHead.IInstallationImpl2, "ConstructionCompleted", {
					dataParm : datas
				}, function(data) {
					if (data.result == 1) {
						alerts(data.msg);
						var type = {
							type : "TemporarySave"
						};
						setTimeout(function() {
							summer.execScript({
								winId : 'detail',
								script : "rebind(" + JSON.stringify(type) + ")"
							});
							summer.closeWin();
						}, 1000);
					} else {
						alerts(data.msg);
					}
				}, function(err) {
					alerts(err.msg);
				});
			}

			/**
			 * 初始化
			 */
			function setData(jsondata) {
				var defult = ["poe", "azwb_kgdy", "azwb_ldkk", "azwb_cp", "azwb_ecjdq", "azwb_yxlyq", "azwb_wxlyq", "azwb_sjkzq", "azwb_dlm", "azwb_dlmh", "a3g", "azwb_gqsfq", "azwb_gqsrqh", "modem_gq", "modem_adsl"];
				var datanum = document.getElementsByTagName("input");
				for (var s in jsondata) {
					if (s.indexOf("image") > 0 || s=="bdef28" || s=="bdef29" || s=="bdef10"|| s=="bdef11"|| s=="bdef12"|| s=="bdef13"|| s=="bdef14"|| s=="bdef15"|| s=="bdef16" || s=="bdef42" || s=="bdef43" || s=="bdef44") {
						if (jsondata[s] != "") {
							angularScope[s] =  getImgUrl(jsondata[s]);
							imgs[s] = jsondata[s];
						} else {
							angularScope[s] = '../../img/myimg/camera.png';
						}
					} else {
						var reg = /^\d+$/;
						if (( typeof (parseInt(jsondata[s]))) == "number") {
							for (var k = 0; k < datanum.length; k++) {
								if (datanum[k].type == "number" && datanum[k].id == s || datanum[k].id == s + "s") {
									angularScope[s] = Number(jsondata[s]);
								} else if (s == "equipment_no" || s == "mac" || s == "esn" || s == "azwb_qdwz" || s == "bdef20" || s == "qyry1_name") {
									angularScope[s] = jsondata[s];
								}
							}
						} else {
							angularScope[s] = jsondata[s];
						}
					}
					if (jsondata[s] == "Y") {
						angularScope[s] = true;
					}
					if (jsondata[s] == "N") {
						angularScope[s] = false;
					}
					if (s == "installation_time" || s == "azwb_gjtime" || s == "azwb_kjtime") {
						if (jsondata[s]) {
							angularScope[s] = new Date(Date.parse(jsondata[s].replace(/-/g, "/")));
						}
					}
					if (s == "complete_state" || s == "visa_whether") {
						if (jsondata[s] == "") {
							angularScope[s] = true;
						}
					}
					if (s == "visa_type") {
						if (jsondata[s]) {
							var _asd = jsondata[s].split(",");
							angularScope.visa_type = _asd;
							var aa = "";
							for(var i = 0; i < _asd.length; i++) {
								aa += ("," + $("#visa_type option[value='" + _asd[i] + "']").text());
							}
							aa = aa.substring(1);
							$("#visa_type_dummy").val(aa);
						} else {
							$("#visa_type_dummy").val("请选择");
						}
						
					}
					if (s == "bdef5") {
						if (jsondata[s]) {
							angularScope.bdef5 = jsondata[s];
							$("#select1_dummy").val(jsondata[s]);
						} else {
							$("#select1_dummy option:first").prop("selected", 'selected');
						}
						if (jsondata[s] == "商家wifi") {
							$(".wifi").css("display", "block");
						}
					}
					if (s == "bdef6") {
						if (jsondata[s]) {
							var str = jsondata[s].split(",");
							$("#wifi_name").val(str[0]);
							$("#wifi_password").val(str[1]);
						}
					}
					if (s == "bdef7") {
						if (jsondata[s]) {
							$("#select2_dummy").val(jsondata[s]);
						} else {
							$("#select2_dummy option:first").prop("selected", 'selected');
						}

					}
					angularScope.$apply();
				}
			}

			function getpk(pk, val) {
				for (var i = 0; i < selectdatas.length; i++) {
					var returnvalue = pk == "doc_name" ? "pk_doc" : "doc_name";
					if (selectdatas[i][pk] == val) {
						return selectdatas[i][returnvalue];
					}
				}
			}

			function visatype(requestdata) {
				doPost(adressHead.ISjtzImpl, "getBdDoc", {
					dataParm : {
						dostype : "app017"
					}
				}, function(jsons) {
					selectdatas = jsons;
					angularScope.visa_type2 = jsons;
					angularScope.$apply();
					$("#visa_type_dummy").val("请选择");
					setData(requestdata);
				}, null, true);
			}


			$('.select').change(function() {
				$("#" + $(this).attr("id") + "_dummy").val($(this).find("option:selected").text());
				switch ($(this).attr("id")) {
				case "visa_type":
					break;
				case "select1":
					if ($(this).find("option:selected").text() == "商家wifi") {
						$(".wifi").css("display", "block");
					} else {
						$(".wifi").css("display", "none");
					};
					angularScope.bdef5 = $(this).val();
					angularScope.$apply();
					break;
				}
			});
			var app = angular.module('myApp', []);
			app.controller('myCtrl', function($scope, $http) {
				timeIdex = new Date();
				$scope.install_date = new Date(timeIdex);
				$scope.installation_time = new Date(timeIdex);
				angularScope = $scope;
				angularScope.complete_state = true;
				angularScope.visa_whether = true;

				//摄像机数量改变
				$scope.$watch("azwb_sxj", function(n, o){
					if($scope.azwb_sxj >4){$scope.azwb_sxj = 4;}
					for (var i = 1; i <= 10; i++) {
						if(i <= $scope.azwb_sxj){
							$("#sxj" + i).css("display", "block");
						}else{
							$("#sxj" + i).css("display", "none");
						}
					}
				});
				//签证数量改变
				$scope.$watch("visa_num", function(n, o){
					if($scope.visa_num >4){$scope.visa_num = 4;}
					for (var i = 0; i <= 10; i++) {
						if(i < $scope.visa_num){
							$(".qz" + i).css("display", "block");
						}else{
							$(".qz" + i).css("display", "none");
						}
					}
				});
				//是否签证 改变  visa_whether
				$scope.$watch("visa_whether", function(n, o){
					if ($scope.visa_whether) {
						$("#showvisa_type").css("display", "block");
						$("#visa_num").css("display", "block");
					} else {
						$scope.visa_num = 0;
						
						$scope.visa_image = null;
						$("#visa_image").attr("src","../../img/myimg/camera.png");
						$scope.bdef42 = null;
						$("#bdef42").attr("src","../../img/myimg/camera.png");
						$scope.bdef43 = null;
						$("#bdef43").attr("src","../../img/myimg/camera.png");
						$scope.bdef44 = null;
						$("#bdef44").attr("src","../../img/myimg/camera.png");
						
						$scope.visa_type = [];
						$("#visa_type_dummy").val("请选择");
						$("#showvisa_type").css("display", "none");
						$("#visa_num").css("display", "none");
						
						$(".qz0").css("display", "none");
						$(".qz1").css("display", "none");
						$(".qz2").css("display", "none");
						$(".qz3").css("display", "none");
					}
				});
				//签证类型改变
				$scope.$watch("visa_type", function(n, o){
					$scope.visa_num = $scope.visa_type.length;
				});
				
				$scope.scannerCode = function(id) {
					summer.openScanner({
						callback : function(args) {
							var va = "";
							try {
								va = args.umdcode.toString().trim();
							} catch(e) {
								va = args.trim();
							}
							switch(id){
								case "mac":
									if(!isMacAdress(va)){
										alerts("不正确的MAC格式:" + va);
										return;
									}
									break;
								case "esn":
									if(!isEns(va)){
										alerts("不正确的ESN格式:" + va);
										return;
									}
									break;
								case "equipment_no":
									if(va.length>6){
										va = va.substring(va.length-6); 
									}
									break;
							}
							$scope[id] = va;
							$scope.$apply();
							}
					});
				}
				
			});

			summerready = function() {
				if (summer.pageParam) {
					bodyid = summer.pageParam.bodyid;
					billcode = summer.pageParam.billcode;
					pageparam = summer.pageParam;
					//imglist = summer.pageParam.sxjsl1; //获取到的摄像机数量
				}
				doPost(adressHead.ISjtzImpl2, "getApdj", {
					dataParm : {
						billid : bodyid
					}
				}, function(data) {
					$(".wifi").css("display", "none");
					visatype(data.data);
				}, function(err) {
					console.log(err);
				});
			}
		</script>
	</body>
</html>
<script src="../../js/Myjs/Common.js"></script>
<script src="../../js/timePicker.js"></script>